Always return FALSE from idle callback to avoid loop
authorAlexander Larsson <alexl@redhat.com>
Fri, 12 Jun 2009 10:45:31 +0000 (12:45 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 12 Jun 2009 10:45:31 +0000 (12:45 +0200)
In the destroyed window case in do_synthesize_crossing_event we didn't
return a value which can cause infinite "loops". Always return FALSE
to make sure the idle doesn't run again.

gdk/gdkwindow.c

index 2b6adc7757e779731d19f80cafdc6662f8ae1839..572e6059820b463ab4e8f3275c452261b07bd4ba 100644 (file)
@@ -8736,7 +8736,7 @@ do_synthesize_crossing_event (gpointer data)
   changed_toplevel_priv->synthesize_crossing_event_queued = FALSE;
 
   if (GDK_WINDOW_DESTROYED (changed_toplevel))
-    return;
+    return FALSE;
 
   display = gdk_drawable_get_display (changed_toplevel);
   serial = _gdk_windowing_window_get_next_serial (display);